<script setup lang="ts">
import {ref} from 'vue'
const active = ref(0)
</script>

<template>
  <router-view></router-view>
  <van-tabbar v-model="active" route>
    <van-tabbar-item icon="home-o" to="/news">资讯</van-tabbar-item>
    <van-tabbar-item icon="smile-o" to="/knowledge">知识库</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/my">我的</van-tabbar-item>
  </van-tabbar>
</template>

<style>
#app{
  min-width: 320px;
  width:100%;
  max-width: 750px;
  margin:0 auto;
}

</style>
